package com.chahu.service;

import com.chahu.entity.User;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface UserService {
    boolean auth(String username, String password, HttpSession session);
    
    boolean login(String name, String pwd);

    boolean register(User user, HttpSession session);

    List<User> page(int page, int pageSize);
    
    boolean updateById(User user);
    
    boolean deleteById(int id);
}
